<!DOCTYPE html>
<html>

<head>
	<meta charset="UTF-8">
	<title>支付宝账号</title>
	<link rel="stylesheet" href="css/common2.css">
	<style>
		.search_img,
		.add {
			margin-left: 2%;
			margin-top: 0;
			display: inline-block;
		}
	</style>
</head>

<body class="main-body">
	<div id="vue-root" style="margin-top: 50px;">

		<div class="add">
			<a href="alipay_item.html" style="color: white">支付宝账号</a>
		</div>
		<div class="refresh" onclick="location.reload()" style="margin-left: 0;">刷新</div>

		<div class="table">
			<table class="table_top">
				<thead>
					<tr>
						<th class="one">
							<input type="checkbox" class="check-box" v-model="all">
						</th>
						<th>序号</th>
						<th class="four">名称</th>
						<th class="four">appId</th>
						<th class="three">编辑/删除</th>
					</tr>
				</thead>
				<tbody id="list">
					<tr v-for="(alipay,index) in list" :key="alipay.id">
						<td>
							<input type="checkbox" class="check-box" v-model="alipay.checked">
						</td>
						<td><span v-text="index+1"></span></td>
						<td v-text="alipay.name"></td>
						<td v-text="alipay.appId"></td>
						<td class="three">
							<div class="option">
								<div class="edit-icon option-icon">
									<a :href="'alipay_item.html?id='+alipay.id"
										style="position: absolute; left: 20%; top: 30%;">
										<img class="img" src="image/edit.png" height="20" width="20"
											onmouseover="this.src='image/edit_light.png'"
											onmouseout="this.src='image/edit.png'" />
									</a>
								</div>
								<div class="delete-icon option-icon" @click="del([alipay.id])"
									style="right: 20%; top:30%;position: absolute;">
									<img class="img" src="../image/delete.png" height="20" width="20"
										onmouseover="this.src='image/delete_light.png'"
										onmouseout="this.src='image/delete.png'" />
								</div>
							</div>
						</td>
					</tr>
				</tbody>
			</table>
		</div>


		<div class="delete" @click="batchDelete" v-if="total>1">批量删除</div>

		<ul class="pagination" v-if="pages>1">
			<li>
				<a v-if="pageNum!=1" @click="pageNum=1">«</a>
				<a class="pages-jump" v-if="pageNum!=1" @click="pageNum--">‹</a>
				<a v-text="pageNum"></a>
				<a class="pages-jump" v-if="pageNum!=pages" @click="pageNum++">›</a>
				<a v-if="pageNum!=pages" @click="pageNum=pages">»</a>
			</li>
		</ul>

	</div>


	<script src="/scriptZIP/qs.min.js"></script>
	<script src="/scriptZIP/vue.min.js"></script>
	<script src="/scriptZIP/axios.min.js"></script>
	<script src="/scriptZIP/dayjs.min.js"></script>

	<script src="js/common.js"></script>
	<script src="js/list.js"></script>

	<script>
		var app = new Vue(merge({
			data: {
				urls: {
					list: '/pc/alipay/list',
					del: '/pc/alipay/del'
				}
			}
		}));
	</script>


</body>

</html>